package com.ruoyi.mymod.controller.pig;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.mymod.service.IPigAiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * 测试功能
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/pig")
public class PigAiController extends BaseController
{

    @Autowired
    private IPigAiService pigAiService;
    /**
     * 获取菜单列表
     */
    @GetMapping("/getMessage")
    public AjaxResult getMessage(@RequestParam(required = false) String ucode, @RequestParam(required = false) String area, @RequestParam(required = false) String feed) throws Exception {
        String message = pigAiService.getMessage();
        return success(message);
    }


    @GetMapping("/getYfMessage")
    public AjaxResult getYfMessage(@RequestParam(required = false) String ucode, @RequestParam(required = false) String area, @RequestParam(required = false) String feed) throws Exception {
        String message = pigAiService.getYfMessage();
        return success(message);
    }

    @GetMapping("/getKillMessage")
    public AjaxResult getKillMessage() throws Exception {
        String message = pigAiService.getKillMessage();
        return success(message);
    }


}
